package com.dc.dao;

import com.dc.entity.EnergyCompanyEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * 船厂、碳核查/内部监控、年份
 */
public interface EnergyCompanyDao extends JpaRepository<EnergyCompanyEntity, Long>, JpaSpecificationExecutor<EnergyCompanyEntity> {

    EnergyCompanyEntity findTop1ByCompanyAndTypeOrderByYearAsc(String company, Integer type);
}
